package cn.christ.com.mobilesafe.view.activity_sjfd;

import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.OnClick;
import cn.christ.com.mobilesafe.R;

/**
 * Created by Administrator on 2018/7/21.
 */

public class SetingUpActivity1 extends BaseSetingUpActivity {


    @BindView(R.id.btn_setUp1_back)
    Button btnSetUp1Back;
    @BindView(R.id.btn_setUp2_next)
    Button btnSetUp2Next;

    @Override
    public int getLayoutRes() {
        return R.layout.activity_setup1;
    }

    @Override
    public void initView() {

    }

    @OnClick({R.id.btn_setUp1_back, R.id.btn_setUp2_next})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_setUp1_back:
                performPre();
                finish();
                overridePendingTransition(R.anim.pre_enter, R.anim.pre_exit);
                break;
            case R.id.btn_setUp2_next:
                performNext();
                finish();
                overridePendingTransition(R.anim.next_enter, R.anim.next_exit);
                break;
        }
    }


    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    protected void performPre() {
        finish();
    }

    @Override
    protected void performNext() {
        startActivityNotFinish(SetingUpActivity2.class);
    }


}
